import request from '@/utils/request'

export function getTagsList(query) {
  return request({
    url: '/mp/usertags/list',
    method: 'get',
    params: query
  })
}

export function addTag(obj) {
  return request({
    url: '/mp/usertags',
    method: 'post',
    data: obj
  })
}

export function updateTag(obj) {
  return request({
    url: '/mp/usertags',
    method: 'put',
    data: obj
  })
}

export function delTag(query) {
  return request({
    url: '/mp/usertags',
    method: 'delete',
    params: query
  })
}
